import request from "@/utils/Request";
import TypeVO from "@/bean/vo/TypeVO";

export default class TypeApi {

  public static getList() {
    return request<TypeVO[]>('/api/setting/type/getList', 'get');
  }

  public static save(data: Partial<TypeVO>[]) {
    return request<string>('/api/setting/type/save', 'post', undefined, data);
  }

  public static delete(data: TypeVO['id'][]) {
    return request<string>('/api/setting/type/delete', 'delete', undefined, data);
  }

}
